@import "modules/reset.scss";
@import "modules/headerRepeat.scss";
@import "modules/navRepeat.scss";
@import "modules/footerRepeat.scss";

body{
    background-color: #ededed;
}

.container{
    width: 1220px;
    margin: 0 auto;
    padding-top: 30px;

    // 购物车区域
    .cartBox{
        box-sizing: border-box;
        border: 1px solid #d4d4d4;
        border-radius: 7px;
        margin-bottom: 30px;
        overflow: hidden;
        .cart-header{
            height: 62px;
            box-sizing: border-box;
            border-bottom: 1px solid #cacaca;
            background-color: #f7f7f7;
            overflow: hidden;
            .cart-title{
                font-size: 18px;
                height: 18px;
                line-height: 18px;
                font-weight: bold;
                margin-top: 22px;
                margin-left: 25px;
            }
        }
        .cart-content{
            background-color: #fff;
            .cart-content-header{
                height: 39px;
                box-sizing: border-box;
                background-color: #f2f2f2;
                border-bottom: 1px solid #dbdbdb;
                overflow: hidden;
                div{
                    height: 100%;
                    float: left;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 12px;
                    line-height: 12px;
                    font-weight: bold;
                    color: #707070;
                    box-sizing: border-box;
                    &:nth-of-type(1){
                        width: 670px;
                        justify-content: start;
                        padding-left: 30px;
                    }
                    &:nth-of-type(2){
                        width: 134px;
                    }
                    &:nth-of-type(3){
                        width: 140px;
                    }
                    &:nth-of-type(4){
                        width: 134px;
                    }
                    &:nth-of-type(5){
                        width: 140px;
                    }
                }
            }
            .cart-content-body{
                .cartList{
                    height: 140px;
                    box-sizing: border-box;
                    background-color: #fff;
                    overflow: hidden;
                    display: flex;
                    align-items: stretch;
                    justify-content: start;
                    &:last-of-type .right{
                        border: none;
                    }
                    .checkBox{
                        width: 75px;
                        height: 100%;
                        box-sizing: border-box;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        background-color: #fff;
                        .checkBtn{
                            display: block;
                            width: 18px;
                            height: 18px;
                            background: url("/images/cart/un-checked.1a97c0ce7ab528e1a70d19d8c41020a2.png") no-repeat;
                            background-size: 100% 100%;
                            cursor: pointer;
                            border-radius: 50%;
                            &.checked{
                                background: url("/images/cart/checked.bda0219ae10d1fbaedcd22c15b6b881e.png") no-repeat;
                                background-size: 100% 100%;
                            }
                        }
                    }
                    .right{
                        flex: 1;
                        border-bottom: 1px dashed #eaeaea;
                        box-sizing: border-box;
                        height: 100%;
                        background-color: #fff;
                        display: flex;
                        justify-content: start;
                        align-items: center;
                        .msgBox{
                            width: 595px;
                            display: flex;
                            justify-content: start;
                            align-items: center;
                            .imgBox{
                                width: 80px;
                                height: 80px;
                                box-sizing: border-box;
                                background-color: #fff;
                                border: 1px solid #ececec;
                                border-radius: 6px;
                                position: relative;
                                img{
                                    display: block;
                                    width: 100%;
                                    height: 100%;
                                }
                                a.cover{
                                    display: block;
                                    position: absolute;
                                    top: 0;
                                    left: 0;
                                    width: 100%;
                                    height: 100%;
                                }
                            }
                        }
                        .titleBox{
                            margin-left: 20px;
                            h4{
                                font-size: 15px;
                                line-height: 15px;
                                height: 15px;
                                font-weight: bold;
                                a{
                                    color: #262626;
                                }
                            }
                            h5{
                                font-size: 12px;
                                height: 12px;
                                line-height: 12px;
                                color: #878787;
                                margin-top: 10px;
                            }
                        }
                        .originPriceBox{
                            width: 134px;
                            height: 100%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            span{
                                font-size: 12px;
                                line-height: 12px;
                                color: #535353;
                                i{
                                    margin-left: 5px;
                                }
                            }
                        }
                        .countBox{
                            width: 140px;
                            height: 100%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            .downBtn{
                                display: block;
                                width: 34px;
                                height: 34px;
                                background: url("/images/cart/cart-updown@2x.7d9dac6e55096ccdca461b23efe15e0b.jpg") no-repeat;
                                background-size: 100% auto;
                                background-position: -1px -60px;
                                cursor: pointer;
                                &:hover{
                                    background-position: -1px -180px;
                                }
                            }
                            span{
                                display: block;
                                width: 45px;
                                font-size: 15px;
                                line-height: 15px;
                                color: #4f4f4f;
                                text-align: center;
                            }
                            .upBtn{
                                display: block;
                                width: 34px;
                                height: 34px;
                                background: url("/images/cart/cart-updown@2x.7d9dac6e55096ccdca461b23efe15e0b.jpg") no-repeat;
                                background-size: 100% auto;
                                background-position: -1px 0px;
                                cursor: pointer;
                                &:hover{
                                    background-position: -1px -120px;
                                }
                            }
                        }
                        .totalPriceBox{
                            width: 134px;
                            height: 100%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            span{
                                font-size: 12px;
                                line-height: 12px;
                                font-weight: bold;
                                color: #535353;
                                i{
                                    margin-left: 5px;
                                }
                            }
                        }
                        .updateBox{
                            width: 140px;
                            height: 100%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            i{
                                display: block;
                                width: 24px;
                                height: 24px;
                                background: url("/images/cart/delete-btn-icon@2x.dda1ea4c403f719dda058524ea48f445.png") no-repeat;
                                background-size: 100% auto;
                                cursor: pointer;
                                &:hover{
                                    background-position: 0 -36px;
                                }
                            }
                        }
                    }
                }
            }
            .cart-content-footer{
                height: 82px;
                box-sizing: border-box;
                background-color: #fff;
                border-top: 1px solid #d0d0d0;
                display: flex;
                justify-content: space-between;
                align-items: center;
                .left{
                    height: 100%;
                    display: flex;
                    justify-content: start;
                    align-items: center;
                    .checkBox{
                        display: flex;
                        justify-content: start;
                        align-items: center;
                        cursor: pointer;
                        .checkBtn{
                            display: block;
                            width: 18px;
                            height: 18px;
                            background: url("/images/cart/un-checked.1a97c0ce7ab528e1a70d19d8c41020a2.png") no-repeat;
                            background-size: 100% 100%;
                            margin-left: 27px;
                            &.checked{
                                background: url("/images/cart/checked.bda0219ae10d1fbaedcd22c15b6b881e.png") no-repeat;
                                background-size: 100% 100%;
                            }
                        }
                        strong{
                            font-size: 12px;
                            line-height: 12px;
                            font-size: #535353;
                            margin-left: 10px;
                            margin-right: 10px;
                        }
                    }
                    .delBox{
                        height: 12px;
                        font-size: 12px;
                        line-height: 12px;
                        color: #adadad;
                        border-left: 1px solid #adadad;
                        padding-left: 10px;
                        span{
                            cursor: pointer;
                        }
                    }
                }
                .right{
                    height: 100%;
                    display: flex;
                    justify-content: start;
                    align-items: center;
                    .allCountBox{
                        height: 42px;
                        display: flex;
                        align-items: center;
                        padding-right: 25px;
                        border-right: 1px solid #dadada;
                        span{
                            font-size: 13px;
                            line-height: 13px;
                            color: #262626;
                            font-weight: bold;
                        }
                        i{
                            font-size: 13px;
                            line-height: 13px;
                            font-weight: bold;
                            display: block;
                            width: 35px;
                            color: #c73734;
                            text-align: center;
                        }
                    }
                    .allPriceBox{
                        height: 42px;
                        padding-left: 25px;
                        padding-right: 40px;
                        display: flex;
                        align-items: center;
                        span{
                            font-size: 13px;
                            line-height: 13px;
                            color: #262626;
                            font-weight: bold;
                            em{
                                color: #c73734;
                                font-size: 11px;
                                i{
                                    font-size: 13px;
                                    margin-left: 5px;
                                }
                            }
                        }
                    }
                    .buyNowBtn{
                        width: 130px;
                        height: 50px;
                        background-color: #5575e1;
                        border-radius: 8px;
                        font-size: 15px;
                        line-height: 50px;
                        color: #fff;
                        font-weight: bold;
                        text-align: center;
                        cursor: pointer;
                        margin-right: 30px;
                        &:hover{
                            background-color: #4e69bf;
                        }
                    }
                }
            }
            .emptyBox{
                height: 529px;
                // display: flex;
                display: none;
                flex-direction: column;
                background: url("/images/cart/cart-empty@2x.f25b2c8c8168313d570820fe359998c5.png") no-repeat;
                background-position: center 50px;
                overflow: hidden;
                p{
                    margin-top: 388px;
                    font-size: 13px;
                    height: 13px;
                    line-height: 13px;
                    text-align: center;
                    color: #7a7a7a;
                }
                .buttonBox{
                    margin-top: 22px;
                    display: flex;
                    justify-content: center;
                    height: 48px;
                    a{
                        display: block;
                        height: 48px;
                        width: 142px;
                        box-sizing: border-box;
                        border-radius: 7px;
                        font-size: 13px;
                        line-height: 48px;
                        text-align: center;
                        &:nth-of-type(1){
                            background-color: #4969da;
                            color: #fff;
                            margin-right: 13px;
                            &:hover{
                                background-color: #4461bd;
                            }
                        }
                        &:nth-of-type(2){
                            background-color: #fafafa;
                            color: #515151;
                            border: 1px solid #dadada;
                            &:hover{
                                background-color: #eee;
                                border-color: #dadada;
                            }
                        }
                    }
                }
            }
        }
    }

    // 推荐区
    .commendBox{
        box-sizing: border-box;
        border: 1px solid #d4d4d4;
        border-radius: 7px;
        margin-bottom: 50px;
        overflow: hidden;
        .commend-header{
            height: 62px;
            box-sizing: border-box;
            border-bottom: 1px solid #cacaca;
            background-color: #f7f7f7;
            overflow: hidden;
            .commend-title{
                font-size: 18px;
                height: 18px;
                line-height: 18px;
                font-weight: bold;
                margin-top: 22px;
                margin-left: 25px;
            }
        }
        .commend-content{
            display: flex;
            flex-wrap: wrap;
            .commend-list{
                width: 25%;
                height: 430px;
                background-color: #fff;
                box-sizing: border-box;
                border-right: 1px solid #dfdfdf;
                border-bottom: 1px solid #dfdfdf;
                position: relative;
                .commend-list-imgBox{
                    width: 216px;
                    height: 283px;
                    box-sizing: border-box;
                    padding-top: 45px;
                    margin: 0 auto;
                    img{
                        display: block;
                        width: 100%;
                        height: 100%;
                    }
                }
                .commend-list-msgBox{
                    height: 95px;
                    padding: 0 20px;
                    h4{
                        font-size: 13px;
                        height: 13px;
                        line-height: 13px;
                        color: #262626;
                        font-weight: bold;
                        text-align: center;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                    }
                    h5{
                        font-size: 12px;
                        height: 12px;
                        line-height: 12px;
                        color: #878787;
                        text-align: center;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        margin-top: 19px;
                    }
                }
                .commend-list-priceBox{
                    p{
                        text-align: center;
                        font-size: 18px;
                        height: 18px;
                        line-height: 18px;
                        color: #000;
                        font-weight: bold;
                    }
                }
                .commend-list-cover{
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    &:hover{
                        box-shadow: 0 0 50px 1px #ccc inset;
                    }
                }
            }
        }
    }
}